package com.smartfactory.sail.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.smartfactory.sail.entity.enums.CustCooperationStatusEnum;
import com.smartfactory.sail.entity.enums.CustTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 客户信息
 * </p>
 *
 * @author 王巨壁
 * @since 2019-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Cust对象", description = "客户信息")
public class Cust implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "客户编码")
    @TableField("custCode")
    private String custCode;


    @ApiModelProperty(value = "企业名称")
    @TableField("enterpriseName")
    private String enterpriseName;

    @ApiModelProperty(value = "客户类型1.交易客户2,供应商3外发企业  具体参考constants表")
    @TableField("custType")
    private CustTypeEnum custType;

    @ApiModelProperty(value = "客户状态0.正常 1：合作中 2：长时间未合作3还未合作,具体参考constants表")
    @TableField("custStatus")
    private Integer custStatus;

    @ApiModelProperty(value = "税号 必须大写")
    @TableField("dutyParagraph")
    private String dutyParagraph;

    @ApiModelProperty(value = "法人名称")
    @TableField("legalPersonName")
    private String legalPersonName;

    @ApiModelProperty(value = "法人身份证正面图片")
    @TableField("IDCardFrontImg")
    private String IDCardFrontImg;

    @ApiModelProperty(value = "法人身份证反面图片")
    @TableField("IDCardBackImg")
    private String IDCardBackImg;

    @ApiModelProperty(value = "法人身份证号码")
    @TableField("IDCardNo")
    private String IDCardNo;

    @ApiModelProperty(value = "法人手机号码")
    @TableField("legalPersonPhone")
    private String legalPersonPhone;

    @ApiModelProperty(value = "公司办公电话")
    @TableField("companyPhone")
    private String companyPhone;

    @ApiModelProperty(value = "公司联系地址")
    private String addr;


    @ApiModelProperty(value = "传真")
    private String fax;

    @ApiModelProperty(value = "客户联系方式: 联系方式,联系详情|联系方式,联系详情|")
    @TableField("contactsInfo")
    private String contactsInfo;

    @ApiModelProperty(value = "开户行")
    @TableField("openingBank")
    private String openingBank;

    @ApiModelProperty(value = "开户行账号")
    @TableField("bankAccount")
    private String bankAccount;

    @ApiModelProperty(value = "所属城市 ")
    private String city;

    @ApiModelProperty(value = "纳税人类型:一般纳税人,小规模纳税人,其他")
    @TableField("taxType")
    private String taxType;

    @ApiModelProperty(value = "欠款总额")
    @TableField("arrearsTotal")
    private Double arrearsTotal;

    @ApiModelProperty(value = "已到期欠款")
    @TableField("expiredArrears")
    private Double expiredArrears;

    @ApiModelProperty(value = "未到期欠款")
    @TableField("unexpiredArrears")
    private Double unexpiredArrears;


    @ApiModelProperty(value = "信用额度")
    @TableField("creditLines")
    private Double creditLines;

    @ApiModelProperty(value = "信用分")
    @TableField("creditScore")
    private Integer creditScore;

    @ApiModelProperty(value = "客户积极性")
    private Double initiative;

    @ApiModelProperty(value = "客户执行力")
    private Double execution;

    @ApiModelProperty(value = "客户责任心")
    private Double responsible;

    @ApiModelProperty(value = "客户专业度")
    private Double expertise;

    @ApiModelProperty(value = "客户合作力")
    private Double cooperation;

    @ApiModelProperty(value = "客户细致力")
    private Double meticulous;

    @ApiModelProperty(value = "对企业的评价")
    private String valuation;

    @ApiModelProperty(value = "企业关怀次数")
    @TableField("careNum")
    private Integer careNum;

    @ApiModelProperty(value = "上次关怀日期")
    @TableField("lastCareDate")
    private String lastCareDate;

    @ApiModelProperty(value = "下次关怀日期")
    @TableField("nextCareDate")
    private String nextCareDate;

    @ApiModelProperty(value = "关怀周期")
    @TableField("careCycle")
    private String careCycle;

    @ApiModelProperty(value = "关怀状态1正常2过期3临期")
    @TableField("careStatus")
    private Integer careStatus;

    @ApiModelProperty(value = "关怀总金额")
    @TableField("careTotalAmount")
    private Double careTotalAmount;

    @ApiModelProperty(value = "最近合作时间")
    @TableField("recentCooperationTime")
    private String recentCooperationTime;

    @ApiModelProperty(value = "首次合作时间")
    @TableField("firstCooperationTime")
    private String firstCooperationTime;

    @ApiModelProperty(value = "合作状态1.还未合作2长时间未合作3合作中")
    @TableField("cooperationStatus")
    private CustCooperationStatusEnum cooperationStatus;

    @ApiModelProperty(value = "合作时间单位天")
    @TableField("cooperationDuration")
    private String cooperationDuration;

    @ApiModelProperty(value = "创建人")
    @TableField("createUser")
    private String createUser;

    @ApiModelProperty(value = "创建时间yyyy-MM-dd HH:mm:ss")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("updateUser")
    private String updateUser;

    @ApiModelProperty(value = "更新时间yyyy-MM-dd HH:mm:ss")
    @TableField("updateTime")
    private LocalDateTime updateTime;


}
